import Vue from "vue";
import Router from "vue-router";
// import HelloWorld from "@/components/HelloWorld";
import blank from "@/views/blank/blank";

Vue.use(Router);

export default new Router({
    routes: [
        {
            path: "/",
            name: "blank",
            component: blank
        },
        {
            path: "/activityPage7",
            name: "activityPage7",
            component: () => import("@/views/ActivityPage/activityPage7"),
            redirect: "/activityPage7/activityPage",
            children: [
                {
                    //秒杀活动页
                    path: "activityPage",
                    name: "act7index",
                    // component: () =>
                    //     import("@/views/ActivityPage/components/indexPage"),
                    component: () =>
                        import("@/views/ActivityPage2/subPage/indexPage"),
                    meta: {
                        activeTab: 0
                    }
                },
                {
                    path: "shopListPage",
                    name: "act7shop",
                    component: () =>
                        import("@/views/ActivityPage/components/shopListPage"),
                    meta: {
                        activeTab: 2
                    }
                },
                {
                    path: "livePage",
                    name: "livePage",
                    component: () =>
                        import("@/views/ActivityPage/components/livePage"),
                    meta: {
                        activeTab: 1
                    }
                },
                {
                    //发起助力
                    path: "startSup",
                    name: "startSup",
                    // component: () =>
                    //     import("@/views/ActivityPage/supPage/startSup"),
                    component: () =>
                        import("@/views/ActivityPage2/subPage/startSup"),
                    meta: {
                        activeTab: -1,
                        hideTabbar: true
                    }
                },
                {
                    //填写信息
                    path: "fillMsg",
                    name: "fillMsg",
                    component: () =>
                        import("@/views/ActivityPage/supPage/fillMsg"),
                    meta: {
                        activeTab: -1,
                        hideTabbar: true
                    }
                },
                {
                    //帮助好友助力页
                    path: "supFriend",
                    name: "supFriend",
                    // component: () =>
                    //     import("@/views/ActivityPage/supPage/supFriend"),
                    component: () =>
                        import("@/views/ActivityPage2/subPage/supFriend"),
                    meta: {
                        activeTab: -1,
                        hideTabbar: true
                    }
                },
                {
                    //助力列表
                    path: "supList",
                    name: "supList",
                    component: () =>
                        import("@/views/ActivityPage/supPage/supList"),
                    meta: {
                        activeTab: -1,
                        hideTabbar: true
                    }
                },
                {
                    //员工页
                    path: "staffPage",
                    name: "staffPage",
                    component: () =>
                        import("@/views/ActivityPage2/staffPage/staffPage"),
                    meta: {
                        activeTab: 4,
                        hideTabbar: false
                    }
                },
                {
                    //员工数据统计页
                    path: "staffDataCount",
                    name: "staffDataCount",
                    component: () =>
                        import("@/views/ActivityPage2/staffPage/dataCount"),
                    meta: {
                        activeTab: 4,
                        hideTabbar: true
                    }
                },
                {
                    //员工海报页
                    path: "staffPostPage",
                    name: "staffPostPage",
                    component: () =>
                        import("@/views/ActivityPage2/staffPage/postPage"),
                    meta: {
                        activeTab: 4,
                        hideTabbar: true
                    }
                },
                {
                    path: "playVideo",
                    name: "playVideo",
                    component: () =>
                        import("@/views/ActivityPage2/subPage/playVideo"),
                    meta: {
                        activeTab: -1,
                        hideTabbar: true
                    }
                },
                {
                    path: "videoList",
                    name: "videoList",
                    component: () =>
                        import("@/views/ActivityPage2/subPage/videoList"),
                    meta: {
                        activeTab: -1,
                        hideTabbar: true
                    }
                }
            ]
        },
        {
            path: "/agentFillLoc",
            name: "agentFillLoc",
            component: () => import("@/views/AgentPage/FillLoc/index")
        },
        {
            path: "/activityPage2",
            name: "activityPage2",
            component: () => import("@/views/ActivityPage/activityPage7"),
            redirect: "/activityPage2/activityPage",
            children: [
                // {
                //     path: "supFriend",
                //     name: "supFriend2",
                //      component: () =>
                //         import("@/views/ActivityPage/supPage/supFriend"),
                //     meta: {
                //         activeTab: 0,
                //         hideTabbar: true
                //     }
                // },
            ]
        }
    ]
});
